<template>
  <transition name="slide-fade">
    <div class="page">
      <div>第一页</div>
      <div class="box animated bounceInDown">jjkkk</div>
    </div>
  </transition>
</template>

<script>
export default {
  name: 'firstPage'
};
</script>

<style lang="scss" scoped>
/* 可以设置不同的进入和离开动画 */
/* 设置持续时间和动画函数 */
.slide-fade-enter-active {
  transition: all 0.3s ease;
}
.slide-fade-leave-active {
  transition: all 0.8s cubic-bezier(1, 0.5, 0.8, 1);
}
.slide-fade-enter,
.slide-fade-leave-to {
  transform: translateX(10px);
  opacity: 0;
}
.box {
  width: 100px;
  height: 100px;
  background-color: #42b983;
}
</style>
